package com.mnb.base.mapper;

import com.mnb.base.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper {
    int deleteByPrimaryKey(@Param("userId") String userId, @Param("roleId") Long roleId);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    int countUserRoleByRoleId(Long roleId);

    int deleteUserRole(String[] userIds);

    int batchUserRole(List<SysUserRole> list);

    int deleteUserRoleByUserId(String userId);

    List<SysUserRole> getUserRoleList(@Param("userId") Object userId);
}